package com.missilike.biz.impl;

import com.missilike.repository.entity.MilContentComment;
import com.missilike.repository.entity.extend.MilContentCommentExtend;
import com.missilike.repository.mapper.MilContentCommentMapper;
import com.missilike.biz.IMilContentCommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author pengpengli
 * @since 2018-12-19
 */
@Service
public class MilContentCommentServiceImpl extends ServiceImpl<MilContentCommentMapper, MilContentComment> implements IMilContentCommentService {

    @Override
    public List<MilContentCommentExtend> getComments(Long id) {
        return baseMapper.getCommentListByContentId(id);
    }
}
